﻿using NB.MGJ.Model;
using NB.MGJ.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace NB.MGJ.Common.Helper
{
    public static class HtmlHelperExtension
    {
      
        /// <summary>
        /// 管辖区域省份
        /// </summary>
        /// <param name="helper"></param>
        /// <returns></returns>
        public static List<SelectListItem> GetDuoXuanSheng(this HtmlHelper helper) 
        {
            var result = HtmlHelperService.GetDuoXuanShengService();
            return result;
        }
  

        /// <summary>
        ///  绑定片区
        /// </summary>
        /// <param name="SaleAreaId">片区ID</param>
        /// <returns></returns>
        public static List<SelectListItem> GetSaleAreaList(this HtmlHelper helper, int SaleAreaId)
        {
        
      
            //int SaleAreaId=1;
            var result = HtmlHelperService.GetSaleAreaService(SaleAreaId);
            return result;
        }

        public static IEnumerable<SelectListItem> GetPriCityList(this HtmlHelper helper)
        {

            string parid = "0";
            var result = HtmlHelperService.GetPriCityService(parid);
            return result;
        }
	

    }
}
